package net.zabuchy.customer.bo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import net.zabuchy.customer.dao.CustomerDao;
import net.zabuchy.customer.entity.Customer;
 
public class CustomerBoImpl implements CustomerBo {
 
	@Autowired
	private CustomerDao customerDao;
	
    public void add(Customer customer){
    	customerDao.add(customer);
    }
 
    public void update(Customer customer) {
    	customerDao.update(customer);
    }
    public void delete(Customer customer) {
    	customerDao.delete(customer);
    }
    
    public void edit(Customer customer) {
    	customerDao.edit(customer);
    }
 
    public List findAll() {
    	return customerDao.findAll();
    }
 
    public Customer findById(int id) {
    	return customerDao.findById(id);
    }

	public CustomerDao getCustomerDao() {
		return customerDao;
	}

	public void setCustomerDao(CustomerDao customerDao) {
		this.customerDao = customerDao;
	}
    
}